<?php echo $this->Html->script(array('actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('categories.add','form','actions'),null,array('inline'=>false));?>

<div class="categories form box corners">
<?php echo $this->Form->create('Category',array('url'=>array('plugin'=>false,'controller'=>$this->params['controller'],'action'=>'category_add')));?>
	<h2><?php __('Add Category'); ?></h2>
	<table>
		<tr>
			<td>
				<?php					
					echo $this->Form->input('name',array('label'=>__('New category name',true)));
					echo $this->Form->input('parent_id',array('label'=>__('Save new Category as',true),'options'=>$parentCategories,'empty'=>array(0=>'Main category')));
				?>		
			</td>
		</tr>
	</table>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions main_actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Categories', true), array('action' => 'category_index'));?></li>
		<li><?php echo $this->Html->link(__('Carts', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Add Cart', true), array('action' => 'add')); ?> </li>
	</ul>
</div>